<template>
  <div id="app">
    <workStation />
    <fontRender />
  </div>
</template>

<script>
import axios from "@/utils/request";
import workStation from "@/views/station/index.vue";
import fontRender from "@/components/fontRender/index.vue";
export default {
  components: {
    workStation,
    fontRender
  },

  methods: {


    // 根据模板名称获取模板
    async getTplByCode() {
      let data = await axios({
        url: '/template/file/579_default',
        method: 'get',
      });
      console.error("模板列表是", data);
    },

    // 创建或更新模板
    async creatTpl() {
      let data = await axios({
        url: '/template',
        method: 'post',
        data: {
          "id": null,
          "templateCode": "579_default",
          "size": "20",
          "width": 800,
          "height": 272,
          "type": 1
        }
      });
      console.error("模板列表是", data);
    },
    closeDialog() {
      this.dialogVisible = false;
      this.showGraphEditor = true;
    }
  }
}
</script>

<style lang="less">
* {
  padding: 0;
  margin: 0;
}
</style>
